#include "stdio.h"
int main ()
{
int i;
int n;
int cont = 0;
int com = 0;
printf ("请输入一共多少名同学：");
scanf ("%d",&n);
int arr[n];
printf ("请输入成绩：");
   for (i = 0; i < n; i++)
   {
        scanf("%d",&arr[i]);
           if (arr[i] >= 60)
           {
              cont++;
           }
           if(arr[i] >= 85)
           {
              com++;
           }
   }
    printf("及格率：%.0f%%\n 优秀率：%.0f%%",(double)cont/n*100,(double)com/n*100);  
    return 0;
}